package com.sgl.gk.scheduled;

import com.sgl.gk.controller.AdvancedTaskScheduleController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author:xuenci
 * @date:2023/5/23 13:47
 **/
@Component
public class MyApplicationRunner implements ApplicationRunner {

    @Autowired
    private AdvancedTaskScheduleController advancedTaskScheduleController;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        // 启动定时任务
//        advancedTaskScheduleController.AdvancedToTask();
//        advancedTaskScheduleController.dataStatisticsTask();
    }

}
